package cn.practice.chat.entity;

import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 聊天记录表
 * </p>
 *
 * @author zhuutao
 * @since 2022-10-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ChatRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 两人之间的聊天唯一id
     */
    private String messageId;

    /**
     * 发送的消息
     */
    private String messageContent;

    /**
     * 发送人
     */
    private Integer senderId;

    /**
     * 接收人
     */
    private Integer receiverId;

    /**
     * 0 未读   1已读
     */
    private Integer status;

    /**
     * 发送时间
     */
    private LocalDateTime sendTime;


}
